package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 小区表
 * </p>
 *
 * @author stylefeng
 * @since 2017-06-20
 */
public class Village extends Model<Village> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 街道id
     */
    private Integer area_code;
    /**
     * 小区名称
     */
    private String vil_name;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArea_code() {
        return area_code;
    }

    public void setArea_code(Integer area_code) {
        this.area_code = area_code;
    }

    public String getVil_name() {
        return vil_name;
    }

    public void setVil_name(String vil_name) {
        this.vil_name = vil_name;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
